package com.chinatsp.onlineapp.presenter;

import tsp.cn.http.BaseIDao;
import tsp.cn.http.HttpConfig;
import tsp.cn.http.interfac.INetResult;
import tsp.cn.http.tools.LogUtil;
import android.content.Context;

import com.chinatsp.onlineapp.base.Config;

/**
 * 终端更新访问令牌接口
 */

public class UpdateTheAccessTokenTerminalDao extends BaseIDao {

	public UpdateTheAccessTokenTerminalDao(Context context,
			INetResult iNetResult) {
		super(context, iNetResult);
	}

	/**
	 * 得到结果后，对结果处理逻辑
	 * 
	 * @param result
	 * @param requestCode
	 */
	@Override
	public void onRequestSuccess(String result, int requestCode) {
		LogUtil.d( "UpdateTheAccessTokenTerminalDao onRequestSuccess");
	}

	/**
	 * 更新口令
	 */
	public void getUpdateTheAccessTokenTerminal() {

		StringBuilder strBuilder = new StringBuilder();
		strBuilder.append(HttpConfig.appendString());
		strBuilder.append(Config.API_UPDATE_THE_ACCESS_TOKEN_TERMINAL);
		getRequest(strBuilder.toString(),
				Config.CODE_UPDATE_THE_ACCESS_TOKEN_TERMINAL);
	}
}